using UnityEngine;

public class InPullMobLogic : Logic
{
	private Vector3 initPosition;

	private Quaternion initRotation;

	public override void OnStart(LogicController contriller, string enterFromLogic, params object[] args)
	{
		base.OnStart(contriller, enterFromLogic);
		LogicEvent(3);
		LogicEvent(1);
	}

	public override void OnEvent(int name, params object[] args)
	{
		if (name == 0)
		{
			bool flag = (bool)args[2];
			LogicEvent(2, args);
			if (!flag)
			{
				ChangeLogic("Idle", 0.1f, 1f);
			}
			else
			{
				ChangeLogic("TutorialWalk");
			}
		}
		else
		{
			base.OnEvent(name, args);
		}
	}

	public override void OnStop()
	{
		LogicEvent(0);
		base.OnStop();
	}
}
